home *** CD-ROM | disk | FTP | other *** search
-
-
-
- LLLLDDDDRRRREEEEAAAADDDDSSSSTTTT((((3333XXXX)))) LLLLDDDDRRRREEEEAAAADDDDSSSSTTTT((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- ldreadst - read symbolt table information
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ffffiiiilllleeeehhhhddddrrrr....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyymmmmssss....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<llllddddffffccccnnnn....hhhh>>>>
-
- iiiinnnntttt llllddddrrrreeeeaaaaddddsssstttt((((LLLLDDDDFFFFIIIILLLLEEEE **** ldptr, iiiinnnntttt flags ))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _l_d_r_e_a_d_s_t reads in the portions of the symbol table implied by the _f_l_a_g_s
- argument. A _f_l_a_g_s argument of ----1111 reads in the entire symbol table.
- Since the other symbol table routines, for example _l_d_t_b_r_e_a_d, ensure that
- the relevant portions of the symbol table have been read in, you need not
- call _l_d_r_e_a_d_s_t to use the other routines. _l_d_r_e_a_d_s_t(_l_d_p_t_r,-_1) would simply
- ensure the whole symbol table is read in at once, which is not necessary.
-
- _l_d_r_e_a_d_s_t is useful, however. One can test for the existence of symbol
- table information in a file in the following way:
-
- char *filename;
- LDFILE *ldptr;
- ldptr = ldopen(filename, (LDFILE *)0);
- if(ldptr == NULL) {
- /* No such file exists */
- } else {
- /* This is not the _only_ way one could test for
- ** the existence of the symbol table.
- */
- if(ldreadst(pchdr,-1) == FAILURE) {
- /* This binary has no symbol table */
- }
- }
-
-
- _l_d_r_e_a_d_s_t returns SSSSUUUUCCCCCCCCEEEESSSSSSSS if it has read in the symbol table successfully
- or FFFFAAAAIIIILLLLUUUURRRREEEE if it cannot. If an symbol table has been truncated or
- damaged there is a small probability that _l_d_r_e_a_d_s_t will core dump rather
- than return FFFFAAAAIIIILLLLUUUURRRREEEE ....
-
- The program must be loaded with the object file access routine library
- lllliiiibbbbmmmmlllldddd....aaaa.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- ldopen(3S), ldclose(3X), ldfcn(4).
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-